<f:subview xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">

	<h3>
		<h:outputText value="#{analyzerMB.timeFrameText}" />
	</h3>

	<a4j:outputPanel layout="block">
		<rich:dataTable columns="2" value="#{analyzerMB.totalErrors}"
			var="record">

			<rich:column>
				<f:facet name="header">
					<h:outputText value="Error Code" />
				</f:facet>



				<a4j:commandLink render="error_code_list">
					<h:outputText value="#{record[0]}" />
					<f:setPropertyActionListener target="#{analyzerMB.errorCode}"
						value="#{record[0]}" />
				</a4j:commandLink>

			</rich:column>

			<rich:column>
				<f:facet name="header">
					<h:outputText value="hits" />
				</f:facet>
				<h:outputText value="#{record[1]}" />
			</rich:column>


		</rich:dataTable>
	</a4j:outputPanel>

	<a4j:outputPanel layout="block">
		<rich:dataTable columns="2" id="error_code_list"
			value="#{analyzerMB.totalErrorsByCode}" var="record">

			<rich:column>
				<f:facet name="header">
					<h:outputText value="Error Code" />
				</f:facet>
				 <div style="overflow:hidden;width:400px">
					<a href="#{record[0]}" target="_blank"> <h:outputText 
						value="#{record[0]}" /> </a>
				</div>
			</rich:column>

			
			<rich:column>	<f:facet name="header">
					<h:outputText value="Top Referrer" />
				</f:facet>
				 <div style="overflow:hidden;width:300px">
					<a href="#{record[1]}" target="_blank"> <h:outputText 
						value="#{record[1]}" /> </a>
				</div>
			</rich:column>
		
			<rich:column>
				<f:facet name="header">
					<h:outputText value="hits" />
				</f:facet>
				<h:outputText value="#{record[2]}" />
			</rich:column>
			
			


		</rich:dataTable>
	</a4j:outputPanel>



</f:subview>